iT邦幫忙

2023 iThome 鐵人賽

DAY 29
0

Openfaas

Create Namespace
cd /ML-Faas-james/ml-faas-netes
kubectl apply -f namespaces.yml
Install OpenFaas on Linux
cd ..
helm install ml-openfaas . --namespace openfaas --set functionNamespace=openfaas-fn --set generateBasicAuth=true

DroneCI

Install Docker-compose on Linux
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose.yaml
docker-compose up
version: '2'

services:
  drone-server:
    image: drone/drone:1
    container_name: drone-server
    ports:
      - 80:80
    volumes:
      - /var/lib/drone:/var/lib/drone/
    restart: always
    environment:
      - DRONE_SERVER_HOST="Your domain"
      - DRONE_SERVER_PROTO=https
      - DRONE_RPC_SECRET="Your RPC"
      - DRONE_GITHUB_CLIENT_ID="Your ID"
      - DRONE_GITHUB_CLIENT_SECRET="Your CLIENT_SECRET"
      - DRONE_TMATE_ENABLED=true
      - DRONE_TMATE_HOST="Your domain"
      - DRONE_TMATE_PORT=2200
      - DRONE_TMATE_FINGERPRINT_RSA="Your FINGERPRINT_RSA"
      - DRONE_TMATE_FINGERPRINT_ED25519="Your FINGERPRINT_ED25519"

  drone-runner:
    image: drone/drone-runner-docker:1.8.2
    container_name: drone-runner
    restart: always
    depends_on:
      - drone-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_RPC_HOST=drone-server
      - DRONE_RPC_PROTO=http
      - DRONE_RPC_SECRET="Your RPC"
      - DRONE_RUNNER_CAPACITY=2

ArgoCD

Install ArgoCD on Kubernetes

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

Change the argocd-server service type to LoadBalancer

kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'

QuickStart

Apply ML-Flow

kubectl apply -f ml-faas/ml-flow-crd/ml-flow-crd.yaml

上一篇
Day29 FreeMLFaas(上)
下一篇
Day31 結尾
系列文
你累了嗎,今天來點克勞內提夫!31
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言